# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpec do
  @moduledoc """
  ReasoningEngine configurations

  ## Attributes

  *   `agentFramework` (*type:* `String.t`, *default:* `nil`) - Optional. The OSS agent framework used to develop the agent. Currently supported values: "langchain", "langgraph", "ag2", "custom".
  *   `classMethods` (*type:* `list(map())`, *default:* `nil`) - Optional. Declarations for object class methods in OpenAPI specification format.
  *   `deploymentSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec.t`, *default:* `nil`) - Optional. The specification of a Reasoning Engine deployment.
  *   `packageSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec.t`, *default:* `nil`) - Optional. User provided package spec of the ReasoningEngine. Ignored when users directly specify a deployment image through `deployment_spec.first_party_image_override`, but keeping the field_behavior to avoid introducing breaking changes.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :agentFramework => String.t() | nil,
          :classMethods => list(map()) | nil,
          :deploymentSpec =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec.t()
            | nil,
          :packageSpec =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec.t()
            | nil
        }

  field(:agentFramework)
  field(:classMethods, type: :list)

  field(:deploymentSpec,
    as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec
  )

  field(:packageSpec,
    as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec
  )
end

defimpl Poison.Decoder,
  for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpec do
  def decode(value, options) do
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpec.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpec do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
